package cn.jc.springbootwebsocketdemo.config;

import java.security.Principal;


/**
 * 从发送信息的 头标识中获取 唯一标致信息
 * @author bn
 */
public class UserPrincipal implements Principal {

    private final String name;

    public UserPrincipal(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }
}
